package com.dzm.test08.entity;

/**
 * 作者：Dzm
 * 时间：2024-07-13-10:06
 * 功能：
 */
public class Student {
    private int sid;        //学号
    private String sname;  //名称
    private String sex;     //性别
    private int age;        //年龄
    private String addr;    //地址
    private int cid;        //编辑编号

    public Student(int sid, String nsname, String sex, int age, String addr, int cid) {
        this.sid = sid;
        this.sname = nsname;
        this.sex = sex;
        this.age = age;
        this.addr = addr;
        this.cid = cid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "\t" + sid +
                "\t" + sname +
                "\t" + sex +
                "\t\t" + age +
                "\t\t" + addr +
                "\t" + cid;
    }
}
